<template>
	<div class="flow-main">
		<iframe class="iframe-src" :src="modelUrl" frameborder="0"></iframe>
	</div>
</template>

<script setup lang="ts">
type Props = {
	nowRowData?: any
}

const props = withDefaults(defineProps<Props>(), {})
const time = new Date().getTime()
let REPORT_URl = import.meta.env.MODE == 'development'?import.meta.env.VITE_MODEL_URL: window.location.origin
if (window.location.host == 'mzj.nanjing.gov.cn') {
  REPORT_URl = window.location.origin+ '/nxyl'
}

const modelUrl = `${REPORT_URl}/act/modeler.html?modelId=${props.nowRowData.id}&time=${time}`
</script>

<style scoped lang="scss">
.flow-main {
	width: 100%;
	height: 100%;
	overflow: hidden;
	.iframe-src {
		width: 100vw;
		height: 85vh;
	}
}
</style>
